import HomeIndex from "../../view/home/HomeIndex";
import LayoutIndex from "../../layout/LayoutIndex";
import {Navigate} from 'react-router-dom'
import KeepAlive from 'react-activation'

const homeRouter = [
    {
        element: <LayoutIndex /> ,
        meta: {
            title: '首页'
        },
        children: [
            {
                path: '/home/index',
                element: <KeepAlive><HomeIndex /></KeepAlive>,
                meta: {title: '首页', requiresAuth: true}
            },
        ]
    }
]

export default homeRouter;